import axios from 'axios'

let base = 'http://127.0.0.1:800'

export const register = params => { return axios.post(`${base}/register`, params) }
export const login = params => { return axios.post(`${base}/login`, params) }
export const articleAdd = params => { return axios.post(`${base}/article/add`, params) }
export const articleList = params => { return axios.get(`${base}/article/list`, { params: params }) }
export const articleEdit = params => { return axios.post(`${base}/article/edit/${params._id}`, params) }

